package leetcode.字符串;

public class 反转字符串344 {
    public void reverseString(char[] s) {
        int mid = s.length>>1;
        for (int i = 0; i < mid; i++) {
            char temp = s[i];
            s[i] = s[s.length-i-1];
            s[s.length-i-1] = temp;
        }
    }
}
